import instance from "@/utils/request";

//1.新增标签
export function addTagList(data){
  return instance.post("/admin/tag/add", data)
}
//2.分页查询
export function getTagPageList(data){
  return instance.post("/admin/tag/list", data)
}
//3.删除标签
export function deleteTag(id){
  return instance.post("/admin/tag/delete", {
    id: id
  })
}
//4.模糊查询
export function searchTag(data){
  return instance.post("/admin/tag/select/list", data)
}
//5.根据id查询
export function getTagById(id){
  return instance.get("/admin/tag/edit/find", {
    params: {
      id: id
    }
  })
}
//6.修改标签
export function updateTag(data){
  return instance.post("/admin/tag/edit", data)
}

//7. 获取标签列表
export function getTagList(){
  return instance.post("/admin/tag/select/list")
}